love={}
marriage={}
birth={}
family={}

def binaryDict(val):
    return [0,val]

love['Q18']={1:5, 2:3, 3:1}
love['Q19']={1:2, 2:1, 3:5, 4:4, 5:3, 6:3}
love['Q20']={1:1, 2:3, 3:5}
love['Q21']={1:5, 2:1, 3:3}
love['Q22|1']=binaryDict(3)
love['Q22|2']=binaryDict(5)
love['Q22|3']=binaryDict(4)
love['Q22|4']=binaryDict(4)
love['Q22|5']=binaryDict(4)
love['Q22|6']=binaryDict(5)
love['Q22|7']=binaryDict(3)
love['Q22|8']=binaryDict(2)
love['Q19']={1:2, 2:1, 3:5, 4:4, 5:3, 6:3}
marriage['Q25']={1:4, 2:2, 3:3}
marriage['Q29']={1:5, 2:3, 3:4, 4:3}
marriage['Q32|1']=binaryDict(5)
marriage['Q32|2']=binaryDict(1)
marriage['Q32|3']=binaryDict(5)
marriage['Q32|4']=binaryDict(3)
marriage['Q32|5']=binaryDict(3)
birth['Q35']={1:5, 2:3, 3:1}
birth['Q36']={1:3, 2:4, 3:5}
birth['Q37|1']=binaryDict(1)
birth['Q37|2']=binaryDict(4)
birth['Q37|3']=binaryDict(2)
birth['Q37|4']=binaryDict(3)
birth['Q37|5']=binaryDict(3)
birth['Q37|6']=binaryDict(3)
birth['Q38|1']=binaryDict(4)
birth['Q38|2']=binaryDict(3)
birth['Q38|3']=binaryDict(4)
birth['Q38|4']=binaryDict(3)
birth['Q38|5']=binaryDict(1)
birth['Q38|6']=binaryDict(3)
birth['Q40']={1:4, 2:4, 3:5, 4:5}
birth['Q48|1']=binaryDict(4)
birth['Q48|2']=binaryDict(5)
birth['Q48|3']=binaryDict(1)
birth['Q48|4']=binaryDict(3)
birth['Q48|5']=binaryDict(4)
family['Q49']={1:5, 2:4, 3:2, 4:1}
family['Q52']={1:5, 2:1, 3:3, 4:3}
family['Q53']={1:5, 2:4, 3:3, 4:2, 5:1}
family['Q55']={1:5, 2:4, 3:3, 4:2, 5:1}
family['Q57']={1:5, 2:4, 3:3, 4:2, 5:1}